home *** CD-ROM | disk | FTP | other *** search
/ The Games Machine 76 / XENIATGM66.iso / Indiana Jones / Indiana Jones.exe / RESOURCE / PREVIEW.GOB / cog_teo_commiecreator.cog < prev    next >
Text File  |  1999-11-15  |  2KB  |  71 lines

  1. # Jones 3D Cog Script
  2. #
  3. # TEO_CommieCreator.cog
  4. #
  5. # Creates a bunch of enemies in the Temple of the sun after indy has left the rooms
  6. #
  7. # [SXC]
  8. #
  9. # (C) 1998 LucasArts Entertainment Co. All Rights Reserved
  10. # ========================================================================================
  11.  
  12. symbols
  13.  
  14.     message     startup
  15.     message     crossed
  16.  
  17.     surface        triggersurf
  18.  
  19.     thing        player          local
  20.     
  21.     template    commie0
  22.     template    commie1
  23.     template    commie2
  24.     
  25.     thing       pos0
  26.     thing       pos1
  27.     thing       pos2
  28.     thing       pos3
  29.     thing       pos4
  30.     thing       pos5
  31.     
  32.     thing       currentai       local
  33.     
  34.     int         enemytype       local
  35.     int         position        local
  36.     int         crosonce        local
  37.  
  38. end
  39.  
  40. # ========================================================================================
  41.  
  42. code
  43.  
  44. startup:
  45.     crosonce = 0;
  46.     position = 0;
  47.     player = GetLocalPlayerThing();
  48.     return;
  49.     
  50.  
  51. # ........................................................................................
  52. crossed:
  53.     if ((GetSenderRef() == triggersurf) && (GetSourceRef() == player) && (crosonce == 0))
  54.     {
  55.         crosonce = 1;
  56.         //print("past adjoin");
  57.         For (position = 0; position <= 6; position = position + 1)
  58.         {
  59.             enemytype = (rand()*3);
  60.             //printint(enemytype);
  61.             currentai = CreateThing(commie0[enemytype], pos0[position]);
  62.             //printint(AiGetMode(currentai));
  63.         }
  64.     }                    
  65.     return;
  66.     
  67. # ........................................................................................
  68. end
  69.  
  70.  
  71.